package com.terrace.db.system.mapper.entity;

import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.terrace.core.utils.enums.RegexType;
import com.terrace.core.utils.validation.annotation.FieldValid;

/**
 * 用户信息表
 * 
 * @author jiangyg
 *
 */
public class User implements Serializable {

	private static final long serialVersionUID = -7189394600948268789L;

	private String id;

	/**
	 * 用户账号
	 */
	private String userAccount;

	/**
	 * 用户姓名
	 */
	private String userName;

	/**
	 * 用户密码
	 */
	private String userPwd;

	/**
	 * 私钥盐
	 */
	private String salt;

	/**
	 * 用户状态
	 */
	private String state;

	/**
	 * 用户备注
	 */
	private String remark;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@FieldValid(depict = "用户账号", nullable = false, regexType = RegexType.CHARACTER)
	public String getUserAccount() {
		return userAccount;
	}

	public void setUserAccount(String userAccount) {
		this.userAccount = userAccount;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	@JsonIgnore
	@FieldValid(depict = "登陆密码", nullable = false, regexType = RegexType.STRING)
	public String getUserPwd() {
		return userPwd;
	}

	public void setUserPwd(String userPwd) {
		this.userPwd = userPwd;
	}
	
	@JsonIgnore
	public String getSalt() {
		return salt;
	}

	public void setSalt(String salt) {
		this.salt = salt;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

}